<template>
    <div class="g-sd5">
        <div class="n-frduser">
            <router-link :href="myRoute" class="face">
                <img :src="myAvatar" :alt="myName">
                <div class="j-flag-usericon"></div>
            </router-link>
            <h5 class="f-thide">
                <router-link :to="myRoute" class="s-fc1 f-fs1" :title="myName">{{ myName }}</router-link>
            </h5>
            <p class="f-brk" title></p>
            <ul class="clear-block">
                <li>
                    <router-link :to="dynamicRoute">
                        <em id="event_count">{{ dynamicCount }}</em>
                        <i>动态</i>
                    </router-link>
                </li>
                <li>
                    <router-link :to="concernedRoute">
                        <em>{{ concernedCount }}</em>
                        <i>关注</i>
                    </router-link>
                </li>
                <li>
                    <router-link :href="fanRoute">
                        <em>{{ fanCount }}</em>
                        <i>粉丝</i>
                    </router-link>
                </li>
            </ul>
        </div>
        <div class="g-wrap8">
            <div class="u-load s-fc4" style="display: none;">
                <i class="icn">
                    正在加载，请稍后...
                </i>
            </div>
            <div class="n-frdlist n-frdlist-1">
                <div class="hd clear-block">
                    <h4>明星用户</h4>
                    <a href="#" class="more">换一批</a>
                </div>
                <ul>
                    <li v-for="(item, index) in singerList">
                        <router-link class="j-flag" :to="item.singerRoute">
                            <img :src="item.singerImgUrl" :alt="item.name">
                        </router-link>
                        <div class="cnt">
                            <div class="name f-thide">
                                <router-link class="j-flag" :to="item.singerRoute" :title="item.name">
                                    <span>{{ item.name }}</span>
                                    <span class="u-icn-new-wrap">
                                        <img class="u-icn-new" :src="vImgUrl">
                                    </span>
                                    <div class="info f-thide j-flag" :title="item.desc">
                                        {{ item.desc }}
                                    </div>
                                </router-link>
                            </div>
                            <div class="btns">
                                <a href="#" class="u-btn u-btn-crt f-fr j-flag">
                                    <i>关注</i>
                                </a>
                                <span class="done s-fc4 j-flag" style="display: none;">
                                    <i class="u-icn u-icn-6">
                                        已关注
                                    </i>
                                </span>
                            </div>
                            <div class="del">
                                <a href="#" class="u-icn u-icn-del j-flag"></a>
                            </div>
                        </div>

                    </li>

                </ul>
            </div>
            <div id="bind-link" class="n-frdwb">
                <p>添加微博好友，和他们分享音乐</p>
                <a href="javascript:void(0)" hidefocus="true" class="u-btn2 u-btn2-1">
                    <i>
                        <em class="u-slg3 u-slg3-sn"></em>
                        绑定新浪微博
                    </i>
                </a>

            </div>
        </div>
    </div>
</template>
<script setup>
defineProps({
    "myAvatar": String,
    "myName": String,
    "dynamicCount": Number,
    "concernedCount": Number,
    "fanCount": Number,
    "vImgUrl": String,
    "singerList": Array,
    "dynamicRoute": String,
    "concernedRoute": String,
    "fanRoute": String,
    "myRoute": String
})
</script>
<style lang="scss" scoped>
.n-frduser {
    position: relative;
    height: 193px;

    .face {
        position: absolute;
        top: 38px;
        left: 30px;
        width: 70px;
        height: 70px;

        img {
            display: block;
            width: 62px;
            height: 62px;
            padding: 2px;
            background: #fff;
            border: 1px solid #dadada;
        }
    }

    h5,
    p {
        position: absolute;
        left: 112px;
        width: 160px;
    }

    h5 {
        top: 40px;
        font-size: 14px;
        width: 180px;
    }

    p {
        top: 67px;
        height: 38px;
        overflow: hidden;
        line-height: 19px;
        color: #888;
    }

    ul {
        position: absolute;
        top: 134px;
        left: 13px;
        overflow: hidden;

        li {
            display: inline;
            float: left;
            margin: 0 2px 0 -2px;
            border-left: 1px solid #c2c2c2;

            a {
                display: block;
                padding: 0 20px;
                color: #666;

                &:hover {
                    color: #0c73c2;
                    text-decoration: none;
                }

                em {
                    display: block;
                    padding: 0 0 9px;
                    font-size: 20px;
                    line-height: 20px;
                    font-family: Arial;
                }

                i {
                    display: block;
                    padding: 0 0 0 2px;
                }
            }
        }
    }


}

.g-wrap8 {
    .u-load {
        height: 26px;
        padding: 20px 0;
        text-align: center;

        .icn {
            display: inline-block;
            width: 16px;
            height: 16px;
            margin-right: 2px;
            vertical-align: middle;
        }
    }

    .n-frdlist {
        margin: 0 0 20px;

        .hd {
            margin: 5px 0;
            padding: 0 0 5px;
            border-bottom: 1px solid #dcdcdc;

            h4 {
                float: left;
            }

            .more {
                float: right;
                color: #666;
            }

        }

        ul {
            li {
                position: relative;
                height: 30px;
                padding: 10px 0;

                &:hover{
                    .del{
                        display: block !important;
                    }
                }


                .cnt {
                    margin: 0 65px 0 40px;
                    line-height: 14px;

                    .name,
                    .info {
                        width: 100%;
                    }

                    .name {
                        padding: 3px 0 7px;

                        .u-icn-new-wrap {
                            margin: -1px 0 0 2px;
                        }

                        .info {
                            margin-top: 2px;
                            color: #9b9b9b;
                        }
                    }

                    .btns {
                        .u-btn {
                            position: absolute;
                            top: 50%;
                            right: 0;
                            margin-top: -11px;
                        }

                        .done {
                            position: absolute;
                            top: 50%;
                            right: 0;
                            margin-top: -7px;
                        }

                    }

                    .del {
                        display: none;
                        position: absolute;
                        top: 0;
                        height: 100%;
                        left: 100%;
                        width: 15px;

                        .u-icn {
                            position: absolute;
                            top: 50%;
                            right: 0;
                            margin-top: -7px;
                        }
                    }

                }


                img {
                    position: absolute;
                    top: 10px;
                    left: 0;
                    width: 30px;
                    height: 30px;
                }



            }

        }


    }

    .n-frdlist-1 {
        ul {
            li {
                .cnt {
                    margin-left: 55px;
                }


                img {

                    width: 45px;
                    height: 45px;
                }



                height: 45px;


            }
        }

    }
}

.n-frdwb {
    margin-bottom: 20px;

    .u-btn2 {
        margin: 10px 0 0 0;

        i {
            width: 195px;
            text-align: left;

            .u-slg3 {
                float: left;
                margin: 5px 10px 0 47px;

            }

        }
    }
}
</style>